package internet;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.nio.charset.StandardCharsets;

public class ClientDemo {
    public static void main(String[] args) throws IOException {
        //Socket s = new Socket(InetAddress.getByName("DESKTOP-9BC50MU"),10000);
        Socket s = new Socket("192.168.0.102", 10001);

        OutputStream os = s.getOutputStream();
        os.write("hello tcp iam coming".getBytes());

        s.close();

    }
}
